#include "PerspectiveCamera.h"

namespace soft_renderer
{
	PerspectiveCamera::PerspectiveCamera(double fovy, double aspect, double near, double far)
		: fovy(fovy), aspect(aspect), near(near), far(far), Camera()
	{
		updateProjectionMatrix();
	}

	void PerspectiveCamera::updateProjectionMatrix()
	{
		_projectionMatrix.perspective(fovy, aspect, near, far);
	}
}

